import os

class Config:
    """应用配置"""
    # 基本配置
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev-key-for-eye-disease-diagnosis'
    
    # 上传配置
    UPLOAD_FOLDER = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'uploads')
    MAX_CONTENT_LENGTH = 16 * 1024 * 1024  # 限制上传大小为16MB
    ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'}
    
    # 模型配置
    MODEL_FOLDER = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'model') 